<div class="topic">
	<div class="fl">Produtos</div>
	<div class="clearB"></div>
</div>

<table id="lista" cellpadding="5" cellspacing="5" align="center" class="produtos" width="100%">
	<tbody>
		<tr valign="top" align="left">
		<td rowspan="<?php echo (count($itens) / 3); ?>" width="auto">
			<?php 
				include_component(
					'produto', 'subMenu', 
					array('categoria_atual' => (isset($categoria_atual)) ? $categoria_atual : null)
				); 
			?>
		</td>
		<?php $i = 0; foreach($itens as $item): ?>
		<td width="250px" style="margin-bottom: 10px; padding-bottom: 25px;">
			<div class="boxmidia">
				<a href='<?php echo url_for('@produto?slug='.$item['slug']); ?>'>
					<?php include_partial('terapiavital/showMidia', array('item' => $item['Midia'], 'width'=> null, 'height' => null)); ?>
				</a>
				<div id="resumo-lista">
					<h3><?php echo $item['nm_item']; ?></h3>
					<?php echo $item['ds_resumo_item']; ?>
				</div>
				<div id="twee-lista"></div>
			</div>
		</td>
		<?php
			$i++;
			if($i == 4)
			{
				echo "</tr>";
				$i = 0;
			}
			endforeach;
		?>
		</tr>
		<tr>
			<td colspan="5">
				<br />
				<table class="paginacao" cellpadding="2" cellspacing="0" width="100%" align="center">
					<tr>
						<td align="left"><?php $pager_layout->displayResultados(); ?></td>
						<td align="right"><?php $pager_layout->display(); ?></td>
					</tr>
				</table>
			</td>
		</tr>
	</tbody>
</table>

<br />
<a href="javascript:history.back(-1);">Voltar</a>